package com.itheima.不可变集合;

import java.util.ArrayList;

public class Test {
    public static void main(String[] args) {
        //JDK9版本才能用
        // ArrayList<String> list=new ArrayList<>(List.of("1","2"));
    }
}
